#include"Pref.h"
#include<QtDebug>
void SetTextEditConfig(QsciScintilla* doc)
{
 	int lines = doc->lines();
        QString MarginWidth("9999");
        int extLength = lines /1000;
        while(extLength >=1)
        {
                MarginWidth += "9";
		extLength = extLength /10;
        }
	doc->setMarginLineNumbers(1,true);
	doc->setMarginWidth(1,MarginWidth);
}

